<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="./js/jquery.min.js"></script>

    <div>
       <button>点击去掉其他按钮颜色</button>
       <button>点击去掉其他按钮颜色</button>
       <button>点击去掉其他按钮颜色</button>
       <button>点击去掉其他按钮颜色</button>
       <button>点击去掉其他按钮颜色</button>
       <button>点击去掉其他按钮颜色</button>
       <button>点击去掉其他按钮颜色</button>
       <button>点击去掉其他按钮颜色</button>
       <button>点击去掉其他按钮颜色</button>
       <button>点击去掉其他按钮颜色</button>
       <button>点击去掉其他按钮颜色</button>
       <button>点击去掉其他按钮颜色</button>
       <button>点击去掉其他按钮颜色</button>
       
    </div>
<script>
    $(function(){
        
        // $('button').css('background', 'yellow');
        $('button').click(function() {
            console.log($('this').css('background', 'yellow'));
            //this.style.background = 'red';
             $(this).css('background', 'yellow');
            $(this).siblings('button').css('background', '');
        })
        
    })
</script>
</body>
</html>